<!--
  @author duanzuocai
  @since 2018/10/22 10:12
-->
<!DOCTYPE html SYSTEM "http://www.thymeleaf.org/dtd/xhtml1-strict-thymeleaf-4.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xmlns:th="http://www.thymeleaf.org">

<div th:fragment="query">
    <input name="categId" type="hidden" th:value="${vo.categId}"/>

    <div class="zmn-form-item">
        <div class="item-inline">
            <label class="inline-label">属性名称：</label>
            <div class="inline-box">
                <div class="inline-box-cc">
                    <div class="box-input-inline">
                        <input type="text" name="name" th:value="${vo.name}" placeholder="属性名称" autocomplete="off" class="layui-input" style="width:233px;" maxlength="45"/>
                    </div>
                </div>
            </div>
        </div>

        <div class="item-inline">
            <label class="inline-label">属性类型：</label>
            <div class="inline-box">
                <div class="inline-box-cc">
                    <div class="box-input-inline">
                        <select name="attrType" id="attrType">
                            <option value="0">请选择</option>
                            <option th:selected="${vo.attrType == 1}" value="1">通用产品属性</option>
                            <option th:selected="${vo.attrType == 2}" value="2">渠道产品属性</option>
                        </select>
                    </div>
                </div>
            </div>
        </div>

        <div class="item-inline">
            <label class="inline-label">属性状态：</label>
            <div class="inline-box">
                <div class="inline-box-cc">
                    <div class="box-input-inline">
                        <select name="status" id="status">
                            <option value="0">请选择</option>
                            <option th:selected="${vo.status == 1}" value="1">停用</option>
                            <option th:selected="${vo.status == 2}" value="2">启用</option>
                        </select>
                    </div>
                </div>
            </div>
        </div>

        <div class="item-inline">
            <label class="inline-label">使用渠道：</label>
            <div class="inline-box">
                <div class="inline-box-cc">
                    <div class="box-input-inline">
                        <select id="channelId" name="channelId" lay-search>
                            <option value="" >-选择二级渠道-</option>
                            <option th:each="channel:${channelList}" th:value="${channel.channelId}" th:selected="${vo.channelId == channel.channelId}"
                                    th:text="${channel.name}" />
                        </select>
                    </div>
                </div>
            </div>
        </div>

        <div class="item-submit">
            <button class="layui-btn layui-btn-sm" lay-submit="" lay-filter="LAY-user-back-search"><i class="layui-icon">&#xe615;</i></button>
        </div>

    </div>

</div>